<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.myTag.com/tag" prefix="myTag" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>自驾租车</title>
<link rel="stylesheet" type="text/css" href="statics/css/goods.css" />
<link rel="stylesheet" type="text/css" href="statics/css/pagination.css" />
<script type="text/javascript" src="statics/js/jquery-1.12.4.js" charset="UTF-8"></script>
<script src="statics/layer/layer.js"></script>
</head>
<body>
<jsp:include page="top.jsp"></jsp:include>
<div class="out" data-type="${param.type }">
	<jsp:include page="goods_step.jsp"></jsp:include>
	<table class="sort" cellspacing="0">
		<tr>
			<td class="tag">
				<span class="t">筛选条件：</span>
				<div class="tip">暂无</div>
				<div class="styleSelected"></div>
				<div class="brandSelected"></div>
				<div class="priceSelected"></div>
			</td>
		</tr>
		<tbody class="content">
		<tr>
			<td class="style">
				<span>车&nbsp;型</span>
				<div class="select all">全部</div>
				<c:forEach items="${carStyle }" var="cs">
					<div>${cs.csName}</div>
				</c:forEach>
			</td>
		</tr>
		<tr>
			<td class="brand">
				<span>品&nbsp;牌</span>
				<div class="all select">全部</div>
				<c:forEach items="${carBrand }" var="cb">
					<div id="${cb.cbId}">${cb.cbName}</div>
					<div class="logo" data-id="${cb.cbId}"><img alt="品牌logo" src="statics/image/upload/logo/${cb.cbLogo}"></div>
				</c:forEach>
			</td>
		</tr>
		<tr>
			<td class="price">
				<span>价&nbsp;格</span>
				<div class="select all">全部</div>
				<div>0-300</div>
				<div>300-500</div>
				<div>500-1000</div>
				<div>1000-2000</div>
			</td>
		</tr>
		</tbody>
	</table>
	<div class="right">
		<div class="dateTime" data-page="goods?type=${param.type }&">
			<jsp:include page="goods_dateTime.jsp"></jsp:include>
		</div>
		<div class="news">
			<div class="title">
				<span>精彩活动</span>
				<a href="huodong" class="more">更多>></a>
			</div>
			<c:forEach items="${activity }" var="a">
				<div class="activity">
					<div class="img">
						<img alt="活动图片" src="statics/image/upload/huodong/${a.dpicture }">
					</div>
					<p>${a.dName }</p>
				</div>
			</c:forEach>
		</div>
		
	</div>
	
	<div class="list">
		<div class="seq">
			<span class="ok">默认排序</span>
			<span>按租金</span>
			<span>按销量</span>
		</div>
		<div class="cars" data-count="${totalCount }">
			<c:forEach items="${cars}" var="cars">
				<div class="car">
					<div class="image">
						<img alt="汽车图片" src="statics/image/upload/cars/${cars.cphoto}">
					</div>
					<div class="info">
						<p>${cars.cname}<c:if test="${cars.cNew==1 }"><img alt="新品" src="statics/image/goods/new.png"></c:if><c:if test="${cars.cHot==1 }"><img alt="热销" src="statics/image/goods/hot.png"></c:if></p>
						<p>${cars.cinfo}</p>
						<p>${cars.csName}</p>
					</div>
					<span>￥${cars.cmoney}</span>
					<button class="btn" data-id="${cars.cid}">预定</button>
				</div>
			</c:forEach>
		</div>
		<div class="M-box"></div>
		<%-- <myTag:page totalCount="${totalCount}" pageNo="${pageNo}" pageSize="${pageSize }"></myTag:page> --%>
	</div>
	<div class="clear" style="clear:both"></div>
	
</div>
<jsp:include page="bottom.jsp"></jsp:include>

<script type="text/javascript" src="statics/js/goods.js" charset="UTF-8"></script>
<script type="text/javascript" src="statics/js/script/jquery.pagination.js" charset="UTF-8"></script>
</body>
</html>